﻿@model GdHotel.Data.Language

@{
    var inEditMode = Model != null && Model.Id > 0;
}

<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.NativeName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.NativeName)
    @Html.ValidationMessageFor(model => model.NativeName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CultureKey)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CultureKey)
    @Html.ValidationMessageFor(model => model.CultureKey)
</div>

@*<div class="editor-label">
    @Html.LabelFor(model => model.FlagPath)
</div>
<div class="editor-field">
    <input type="file" id="file" name="file" />
    @Html.ValidationMessageFor(model => model.FlagPath)
</div>*@

<div class="editor-label">
    @Html.LabelFor(model => model.ShortName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ShortName)
    @Html.ValidationMessageFor(model => model.ShortName)
</div>

@if (inEditMode)
{
    <div class="editor-label">
        @Html.LabelFor(model => model.Default)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Default)
        @Html.ValidationMessageFor(model => model.Default)
    </div>
}
